// ActionScript file
//转换乱码
/*
function EncodeUtf8(str : String):String {
    var oriByteArr : ByteArray = new ByteArray();
    oriByteArr.writeUTFBytes(str);
    var tempByteArr : ByteArray = new ByteArray();
    for (var i = 0; i<oriByteArr.length; i++) {
        if (oriByteArr == 194) {
            tempByteArr.writeByte(oriByteArr[i+1]);
            i++;
        } else if (oriByteArr == 195) {
            tempByteArr.writeByte(oriByteArr[i+1] + 64);
            i++;
        } else {
            tempByteArr.writeByte(oriByteArr);
        }
    }
    tempByteArr.position = 0;
    return tempByteArr.readMultiByte(tempByteArr.bytesAvailable,"chinese");
    //return tempByteArr.readMultiByte(tempByteArr.bytesAvailable,"chinese");
}*/
/**
 * 用户未登录，进入用户登录页面。
 * @param value:String 用户登录页面URL
 */
private function gotologin(value:String):void{
	navigateToURL(new URLRequest(value), '_self');
}

/**
 * 进入图片处理程序 
 * @param value:String URL值
 * 
 */
private function fmGoToPhotoShop(value:String):void{
	navigateToURL(new URLRequest('photoshop.php?'+value), '_self');
}